import request from ".."

//实现 字段设置接口
export const getFieldsList = ()=>{ 
  return request.get('/fields')
}
export const getFieldsStatus = ()=>{ 
  return request.get('/get_fields')
}
export const updateFields = (id:number,data:any)=>{ 
  return request.put('/fields/'+id,data)
}
export const createFields = (data:any)=>{ 
  return request.post('/fields',data)
}
export const deleteFields = (id:number)=>{ 
  return request.delete(`/fields/${id}`)
}